package main

import (
	"log"
	"net/http"
)

func main() {
	http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request){
		w.Write([]byte("hello world"))
	})
    http.HandleFunc("/bye", http_sayBye)

	log.Println("starting server... v1")
	log.Fatal(http.ListenAndServe(":4000", nil))
}

func http_sayBye(w http.ResponseWriter, r *http.Request)  {
	w.Write([]byte("bye bye"))
}